function getLocation () {
  return new Promise((resolve, reject) => {
    wx.getLocation({
      success: (result) => {
        resolve(result)
      },
      fail: (res) => {
        reject(res)
      },
      complete: (res) => {},
    })
  })
}

module.exports = {
  getLocation
};